package com.gsm.company;

import com.gsm.common.utils.IdWorker;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.context.annotation.Bean;

/**
 * @Description: java类作用描述
 * @Author: gaoshengmin
 * @CreateDate: 2020/2/6$ 23:04$
 * @UpdateUser: gaoshengmin
 * @UpdateDate: 2020/2/6$ 23:04$
 * @UpdateRemark: 修改内容
 * @Version: 1.0
 */
@SpringBootApplication(scanBasePackages = "com.gsm")
@EntityScan(value = "com.gsm.domain.company")
@EnableEurekaClient
public class CompanyServer {
    public static void main(String[] args) {
        SpringApplication.run(CompanyServer.class);
    }

    @Bean
    public IdWorker idWorker(){
        return new IdWorker();
    }
}
